package com.example.tliasmanagement;

import com.alibaba.fastjson2.JSON;
import com.example.EnableHeaderConfig;
import com.example.MyImportSelector;
import lombok.extern.slf4j.Slf4j;
import org.dom4j.io.SAXReader;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

@Slf4j
@ServletComponentScan
@SpringBootApplication
@EnableHeaderConfig
//@EnableAsync
//@EnableCaching
//@EnableScheduling
//@EnableTransactionManagement
//@Import(MyImportSelector.class)
//@Import(HeaderConfig.class)
// @Import(TokenParser.class)
// @ComponentScan({"com.example", "com.itheima.tliasmanagement"}) 不推荐
public class TliasManagementApplication {

    public static void main(String[] args) {
        log.info("args:{}", JSON.toJSONString(args));
        SpringApplication.run(TliasManagementApplication.class, args);
    }
//    @Beana
//    public SAXReader saxReader(){
//        return new SAXReader();
//    }

}
